<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../../static/bootstrap/css/bootstrap.min.css"
	rel="stylesheet">
<link rel="stylesheet" href="../../static/css/sb-admin-2.css">
<link href="../../static/prettify/github-v2.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
      <script src="../../static/js/html5shiv.min.js"></script>
      <script src="../../static/js/respond.min.js"></script>
    <![endif]-->
<style>
body {
	word-wrap: break-word;
}
</style>
</head>
<body onload="prettyPrint();">
	<div id="nav"></div>
	<div id="page-wrapper" style="padding: 10px">
		<div class="container-fluid">
			<div class="row">
				<div class="col-md-12">


					<ol class="breadcrumb">
						<li><a href="../tag.html">标签</a></li>
						<li><a href="index.html">数据标签</a></li>
						<li><a href="newsStat.html">动态统计标签</a></li>
					</ol>

					<h2>动态统计标签</h2>
					<h3>默认dataName</h3>
					<p>newsStatistics</p>
					<h3>结果返回</h3>
					<p>返回一个不为null的NewsStatistics对象</p>
					<p>NewsStatistics可访问属性如下：</p>
					<div class="table-responsive">
						<table class="table">
							<thead>
								<tr>
									<th>属性名</th>
									<th class="col-md-3">类型</th>
									<th>是否可能为null</th>
									<th class="col-md-6">说明</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>lastModify</td>
									<td>Timestamp</td>
									<td>是</td>
									<td>最后修改日期</td>
								</tr>
								<tr>
									<td>lastWrite</td>
									<td>Timestamp</td>
									<td>是</td>
									<td>最后发布日期</td>
								</tr>
								<tr>
									<td>total</td>
									<td>int</td>
									<td>否</td>
									<td>总数</td>
								</tr>
							</tbody>
						</table>
					</div>

					<h3>默认配合模板</h3>
					<pre class="prettyprint lang-html">&lt;div  th:if=&quot;${newsStatistics != null}&quot; th:remove=&quot;tag&quot;&gt;
&lt;div class=&quot;panel panel-default&quot;&gt;
	&lt;div class=&quot;panel-heading&quot;&gt;
		&lt;h3 class=&quot;panel-title&quot;&gt;动态统计&lt;/h3&gt;
	&lt;/div&gt;
	&lt;ul class=&quot;list-group&quot;&gt;
		&lt;li class=&quot;list-group-item&quot;&gt;&lt;strong&gt;动态总数：&lt;/strong&gt;&lt;span
			th:text=&quot;${newsStatistics.total}&quot;&gt;&lt;/span&gt;&lt;/li&gt;
		&lt;li class=&quot;list-group-item&quot;
			th:if=&quot;${newsStatistics.lastWrite != null}&quot;&gt;&lt;strong&gt;最后发布日期：&lt;/strong&gt;&lt;span
			th:text=&quot;${times.format(newsStatistics.lastWrite,&#x27;yyyy-MM-dd HH:mm&#x27;)}&quot; th:data-timestamp=&quot;${times.getTime(newsStatistics.lastWrite)}&quot;&gt;&lt;/span&gt;&lt;/li&gt;
		&lt;li class=&quot;list-group-item&quot;
			th:if=&quot;${newsStatistics.lastModify != null}&quot;&gt;&lt;strong&gt;最后修改日期：&lt;/strong&gt;&lt;span
			th:text=&quot;${times.format(newsStatistics.lastModify,&#x27;yyyy-MM-dd HH:mm&#x27;)}&quot; th:data-timestamp=&quot;${times.getTime(newsStatistics.lastModify)}&quot;&gt;&lt;/span&gt;&lt;/li&gt;
	&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
					</pre>
				</div>
			</div>
		</div>
	</div>
</body>

<script type="text/javascript" src="../../static/jquery/jquery.min.js"></script>
<script type="text/javascript"
	src="../../static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../../static/prettify/prettify.js"></script>
<script>
	$(function() {
		$("#nav").load("dataTagNav.html");
	});
</script>
</html>
